package com.ygqh.customs.config;

import com.ygqh.common.AbstractObject;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * 〈〉
 *
 * @author guohao
 * @date 2019/3/18 18:07
 * @since 1.0.0
 */
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Data
public class CustomsConfig extends AbstractObject {

    private static final long serialVersionUID = 1880716218141971046L;
    private String ebpCode;
    private String payCodeWechat;
    private String recpAccountM;
    private String recpAccountS;
    private String recpCode;
    private String recpName;
    private String localSignUrl;
    private String customsDataUpUrl;
    private String certNo;

    /**
     * 币制	currency	C..4	实际交易币制（海关编码）	是
     * <p>
     * 货币代码    货币符号   货币名称
     * 142        CNY        人民币
     */
    private String currency = "142";
    /**
     * 验核机构	verDept	C1	1-银联 2-网联 3-其他	是
     */
    private String verDept = "3";
    /**
     * 支付类型	payType	C1	用户支付的类型。1-APP 2-PC 3-扫码 4-其他	否
     */
    private String payType = "4";

    public CustomsConfig(String ebpCode, String payCodeWechat, String recpAccountM, String recpAccountS, String recpCode,
                         String recpName, String localSignUrl, String customsDataUpUrl, String certNo) {
        this.ebpCode = ebpCode;
        this.payCodeWechat = payCodeWechat;
        this.recpAccountM = recpAccountM;
        this.recpAccountS = recpAccountS;
        this.recpCode = recpCode;
        this.recpName = recpName;
        this.localSignUrl = localSignUrl;
        this.customsDataUpUrl = customsDataUpUrl;
        this.certNo = certNo;
    }
}
